<?php
include_once('king_head.php');
?>
                    <table width="100%" border="0">
                      <tr>
                        <td height="40" colspan="4"><h2 align="center">Proposed Products </h2></td>
                      </tr>
                      <tr>
                        <td colspan="4"><div align="center"><span style="color: #FF0000">**</span>You must Delete a product after successfull approval. </div></td>
                      </tr>
                      <tr>
                        <td width="30%">Product Title </td>
                        <td width="45%"><div align="center">Proposed By</div></td>
                        <td width="15%">Details</td>
                        <td width="10%"> Delete </td>
                      </tr>
					  <?php
						$qry="Select * from temp_product";
						$res=mysql_query($qry);
						while($row=mysql_fetch_array($res))
						{?>		
                      <tr>
                        <td><?php echo $row['product_title'];?></td>
						<?php 
						$qr="select * from reseller where site_id=".$row['added_by'];
						$rs=mysql_query($qr);
						$rw=mysql_fetch_array($rs);
						?>
                        <td><?php echo $rw['title'].$rw['fname'].$rw['mname'].$rw['lname']."(".$row['added_by'].")";?></td>
                        <td><a href="prod_det.php?id=<?php echo $row['id'];?>" target="_blank">View Details</a> </td>
                        <td><a href="del_tmp_prod.php?id=<?php echo $row['id'];?>" target="_blank">Delete</a></td>
                      </tr><?php }?>
                    </table>
<?php 
include_once('king_foot.php');
?>